package com.ruoyi.qsng.domain;

import java.math.BigDecimal;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程退费对象 k_course_refund
 * 
 * @author kanglou
 * @date 2023-06-07
 */
@ApiModel("课程退费对象 k_course_refund")
public class KCourseRefund extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 退费人id */
    @Excel(name = "退费人id")
    @ApiModelProperty("退费人id")
    private String userId;

    /** 课程id */
    @Excel(name = "课程id")
    @ApiModelProperty("课程id")
    private String courseId;

    /** 退费节次 */
    @Excel(name = "退费节次")
    @ApiModelProperty("退费节次")
    private Integer refundSection;

    /** 当前状态0已申请1已退费 */
    @Excel(name = "当前状态0已申请1已退费")
    @ApiModelProperty("当前状态0已申请1已退费")
    private Integer state;

    /** 金额 */
    @Excel(name = "金额")
    @ApiModelProperty("金额")
    private BigDecimal price;

    /** 主键 */
    private String id;

    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setCourseId(String courseId) 
    {
        this.courseId = courseId;
    }

    public String getCourseId() 
    {
        return courseId;
    }
    public void setRefundSection(Integer refundSection) 
    {
        this.refundSection = refundSection;
    }

    public Integer getRefundSection() 
    {
        return refundSection;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("courseId", getCourseId())
            .append("refundSection", getRefundSection())
            .append("state", getState())
            .append("price", getPrice())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
